home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_313 / uucp / uucp1.lzh / src / uucico / sysdep.h < prev    next >
C/C++ Source or Header  |  1990-01-10  |  2KB  |  62 lines

  1. /* Amiga Port by William Loftus */
  2. /* Changes are Copyright 1988 by William Loftus. All rights reserved. */
  3.  
  4. /*
  5.  * Declarations of gnuucp's system-dependent routines, which
  6.  * are in the file sysdep.c (a link to one of many system dependent
  7.  * implementations).
  8.  */
  9.  
  10. void    munge_filename();
  11.  
  12. /*
  13.  * Basement level I/O routines
  14.  *
  15.  * xwrite() writes a character string to the serial port
  16.  * xgetc() returns a character from the serial port, or an EOF for timeout.
  17.  * sigint() restores the state of the serial port on exit.
  18.  * openline() opens a serial port for an incoming call, waiting for carrier.
  19.  * openout() opens a serial port for an outgoing call.
  20.  */
  21. int xwrite();           /* filedesc, buffer, count */
  22. int xgetc();            /* No arg */
  23. int sigint();          /* No arg */
  24. void openline();        /* ttyname */
  25. int openout();          /* ttyname */
  26. void amiga_setup();     /* No arg */
  27.  
  28.  
  29. /*
  30.  * Uucp work queue scan.
  31.  *
  32.  * gotsome = work_scan(hostname);
  33.  *
  34.  * Result is 1 if there is work, 0 if none.  If result is 1, and work_scan
  35.  * is called a second time without an intervening work_done, it won't
  36.  * rescan the directory but simply returns a 1.
  37.  *
  38.  * workfile = work_next();
  39.  *
  40.  * Result is char * to static filename; or NULL if no more.
  41.  * We only read the directory once.  If callers want more to rescan it
  42.  * in case more work is here, they should call work_scan again.
  43.  *
  44.  * void work_done();
  45.  * Clean up a work scan.  No need to call this if work_next returned NULL;
  46.  * it has cleaned up.
  47.  */
  48. extern int work_scan();
  49. extern char *work_next();
  50. extern void work_done();
  51.  
  52. /* SERIAL PORT DELARATIONS ALSO TIMER */
  53. extern struct MsgPort *CreatePort();
  54. extern struct IOExtSer *Read_Request;
  55. extern unsigned char rs_in[2];
  56. extern struct IOExtSer *Write_Request;
  57. extern unsigned char rs_out[2];
  58. extern struct timerequest Timer;
  59. extern struct MsgPort *Timer_Port;
  60.  
  61.  
  62.